<template>
  <div>
    <p style="color:#f60000">{{state.stuId}}</p>
    <p>test</p>
  </div>
</template>

<script lang="ts" setup>
import axios from "axios";
import {reactive, ref, onMounted, defineProps, defineEmits, nextTick} from "vue";
import { useRoute, useRouter } from 'vue-router';
const route = useRoute();
const router = useRouter();

const state = reactive({
  stuId: 0,
})

onMounted(()=>{
  state.stuId = route.query.stuid || 0;
})
</script>

<style scoped>

</style>
